package com.hzit.manager.service.impl;

import com.hzit.manager.mapper.ItemMapper;
import com.hzit.manager.service.IItemService;
import com.ruoyi.system.api.domain.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Service
public class ItemServiceImpl implements IItemService {
	@Autowired
	private ItemMapper itemMapper;
	@Override
	public List<Item> list() {
		return itemMapper.list();
	}

	@Override
	public List<Item> findItemsByGoodsId(Long id) {
		return itemMapper.findItemsByGoodsId(id);
	}

	@Override
	public Item findItemById(Long id) {
		return itemMapper.findItemById(id);
	}
}
